package com.haifeng.jupiter.auth.constant;

/**
 * <p>
 * 常量
 * </p>
 *
 * @Author: Haifeng
 * @date: 2020-08-11
 */
public interface Constants {

    String JWT_SIGN_KEY = "AbcD@2020KLAs###@DD";
    String INVALID_REFRESH_TOKEN = "Invalid refresh token";
    String INVALID_AUTHORIZATION_CODE = "Invalid authorization code";
    String BAD_CREDENTIALS = "Bad credentials";
    String TOKEN_WAS_NOT_RECOGNISED = "Token was not recognised";
    String INVALID_SCOPE = "Invalid scope";
    String UNSUPPORTED_GRANT_TYPE = "Unsupported grant type";
    String MISSING_GRANT_TYPE = "Missing grant type";
    String AN_AUTHORIZATION_CODE_MUST_BE_SUPPLIED = "An authorization code must be supplied";
    String CONVERT_ACCESS_TOKEN_TO_JSON = "Cannot convert access token to JSON";
    String STRING_PARAMETER_TOKEN_IS_NOT_PRESENT = "Required String parameter 'token' is not present";
    String REDIRECT_URI_MISMATCH = "Redirect URI mismatch.";
    String INVALID_REFRESH_TOKEN_MSG = "refresh_token不正确！";
    String INVALID_AUTHORIZATION_CODE_MSG = "授权码不正确！";
    String BAD_CREDENTIALS_MSG = "客户端凭证不正确！";
    String TOKEN_WAS_NOT_RECOGNISED_MSG = "令牌不正确或者已失效！";
    String INVALID_SCOPE_MSG = "请求的scope不正确！";
    String UNSUPPORTED_GRANT_TYPE_MSG = "不支持该授权方式！";
    String MISSING_GRANT_TYPE_MSG = "请求缺少授权类型！";
    String AN_AUTHORIZATION_CODE_MUST_BE_SUPPLIED_MSG = "请求缺少授权码！";
    String CANNOT_CONVERT_ACCESS_TOKEN_TO_JSON_MSG = "该令牌不正确！";
    String REQUIRED_STRING_PARAMETER_TOKEN_IS_NOT_PRESENT_MSG = "Head中缺少Authorization参数！";
    String REDIRECT_URI_MISMATCH_MSG = "Redirect URI不正确！";
}
